#pragma once

class Complex
{
public:
	Complex(double real = 0.0, double imag = 0.0) :real(real), imag(imag) {}
	void setreal(double);
	void setimag(double);
	double getreal();
	double getimag();
	friend Complex operator +(Complex a, Complex b);
	friend Complex operator -(Complex a, Complex b);
	friend Complex operator *(Complex a, Complex b);
	friend Complex operator /(Complex a, Complex b);
private:
	double real;
	double imag;
};

Complex operator +(Complex a, Complex b);
Complex operator -(Complex a, Complex b);
Complex operator *(Complex a, Complex b);
Complex operator /(Complex a, Complex b);